package com.zys.el.time.mq.handler;

import com.alibaba.fastjson2.JSONObject;
import com.zys.el.time.ws.service.IChatService;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class ChatHandler {
    @Resource
    private IChatService chatService;

    public void save(JSONObject msgData) {
        chatService.saveInDB(msgData);
    }
}
